﻿using System.Windows;
using System.Windows.Controls;
using DevExpress.AgDataGrid.Data;
using DevExpress.AgDataGrid;
using DevExpress.AgDataGrid.Data.Helpers;

namespace Test.Silverlight.DataGrid {
    public partial class Grouping : UserControl {
        public Grouping() {
            InitializeComponent();
			grid.DataSource = InvoicesData.DataSource;
        }

        #region OptionsPanel
        void collapse_Click(object sender, RoutedEventArgs e) {
            grid.CollapseAll();
        }
        void expand_Click(object sender, RoutedEventArgs e) {
            grid.ExpandAll();
        }
        #endregion
    }

}
